/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;
import escom.ipn.modelo.dao.CoordenadaRecursoDAO;
import escom.ipn.modelo.dto.CoordenadaPieTierraClass;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
/**
 *
 * @author omar moreno
 */
public class CoordenadaRecursoFacade {
      private Connection cnn;
    private CoordenadaRecursoDAO dao;
    
    public CoordenadaRecursoFacade(Connection cnn){
        this.cnn = cnn;
        dao = new CoordenadaRecursoDAO();
    }
    
    
    public List leerCoordenadaRecurso(CoordenadaPieTierraClass a)
            throws SQLException{
        return dao.loadCoordenadasRecurso(a, cnn);
    }
    
    public List leerCoordenadaPatrulla(CoordenadaPieTierraClass a)
            throws SQLException{
        return dao.loadCoordenadasPatrullas(a, cnn);
    }
    
    public List mostrarCoordenadas(CoordenadaPieTierraClass a,Connection con)
    throws SQLException{
        return dao.getCoordenadas(a,con);
    }
    
    public List mostrarPatrullas(CoordenadaPieTierraClass a,Connection con)
    throws SQLException{
        return dao.getCoordenadasPatrullas(a,con);
    }
    
}
